package com.j2some;

import java.util.HashMap;
import java.util.Map;

import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.yishun.springboot.Application;
import com.yishun.springboot.dao.CWRServiceTest;

import cn.hutool.http.HttpUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * 
 * @date 2021年3月25日 上午9:10:52
 * @author XiaoHuang
 * @param <T>
 *
 */

@Slf4j
public class Principal_SeTestParamActionRequest<T> {
	@Test
	public void reQuestParamActionRe() {

		for (int j = 0; j < 5; j++) {
			log.info("-----------------");
			log.info("j:" + j);
			log.info("前面");
			if (j == 3)
				j--;
			log.info("后面");
			log.info("-----------------\n");
		}

//		String baseUlr = "https://szwb.sz.gov.cn:2019/openapi";// 请求地址
//		JSONObject j = new JSONObject();
//		String requestUrl = "/vehicle/addBasicInfo";
//		j.put("page", 1);
//		j.put("rows", 1);
//		j.put("keyType", "map3");
//		
//		
//		innerRequestParamMethod(j,baseUlr+requestUrl);
	}

	public void innerRequestParamMethod(JSONObject param, String requestUrl) {

		log.info("jsonobject keyset:" + param.keySet());

		for (int i = 0; i < param.size(); i++) {

		}
		String info = HttpUtil.post(requestUrl, param.toJSONString());
		log.info(info);
	}
}
